<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
		'id' => 'horizontalForm',
        'type' => 'horizontal',
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model, $people); ?>

		<?php echo $form->textFieldRow($model,'volunteer_code',array('size'=>45,'maxlength'=>45)); ?>

		<?php echo $form->dropDownListRow($people,'people_type', $people->getPeopleType(), array('prompt'=>'Select Type..' ) ); ?>
		
		<?php echo $form->textFieldRow($people,'people_fname',array('size'=>45,'maxlength'=>45)); ?>
	
		<?php echo $form->textFieldRow($people,'people_lname',array('size'=>45,'maxlength'=>45)); ?>

		<?php echo $form->textFieldRow($people,'people_mname',array('size'=>4,'maxlength'=>4)); ?>

		<?php echo $form->dropDownListRow($people,'people_gender', $people->getGenderOptions(), array('prompt'=>'Select Gender..' ) ); ?>

		<?php echo $form->datepickerRow($people,'people_birthdate',
										array('prepend' => '<i class="icon-calendar"></i>',
											  'options'=> array('format'=>'yyyy/mm/dd',
											   					'weekStart'=>1, 
											   					'showButtonPanel'=> true,
											   					'showAnim'=> 'fold',))); ?>

	<?php echo $form->dropDownListRow($people,'people_marital_status', $people->getMaritalStatus(), array('prompt'=>'Select marital status..' ) ); ?>

	<?php echo $form->textFieldRow($people,'people_address_1',array('size'=>60,'maxlength'=>255)); ?>
		
	<?php echo $form->textFieldRow($people,'people_address_2',array('size'=>60,'maxlength'=>255)); ?>

	<?php echo $form->textFieldRow($people,'people_mobile',array('prepend' => '+63')); ?>

	<?php echo $form->textFieldRow($people,'people_landline',array('prepend' => '(02)')); ?>
	
	<?php echo $form->textFieldRow($people,'people_email',array('size'=>45,'maxlength'=>45)); ?>
		
	<?php
          echo $form->fileFieldRow($people,'people_photo',array('id'=>'people_photo',)); // image file select when clicks on upload photo
    ?>



	<div class="row">
		 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'submit', 'type'=>'primary','label'=>'create')); ?>
		 <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'reset', 'label'=>'cancel')); ?>
    </div>

<?php $this->endWidget(); ?>